<?php 
$q=$_GET["q"]; 
  
$con = mysql_connect('localhost', 'root', ''); 
if (!$con) 
  { 
  die('Could not connect: ' . mysql_error()); 
  } 
  
mysql_select_db("etunote", $con); 
  
$sql="SELECT * FROM exam WHERE id = '".$q."'"; 
  
$result = mysql_query($sql); 
  
echo "<table border='1'> 
<tr> 
<th>exo</th> 
<th>note</th> 
<th>etu</th> 

</tr>"; 
  
while($row = mysql_fetch_array($result)) 
  { 
  echo "<tr>"; 
  echo "<td>" . $row['exo'] . "</td>"; 
  echo "<td>" . $row['note'] . "</td>"; 
  echo "<td>" . $row['etu'] . "</td>"; 
  echo "</tr>"; 
  } 
echo "</table>"; 
  
mysql_close($con); 
?>